<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache,must-revalidate">
        <meta http-equiv="expires" content="0">
        <!--<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">-->
        <link rel="stylesheet" href="css/allBasic.css">
        <link rel="stylesheet" href="css/siteIndex.css">
        <link rel="icon" href="img/favicon.ico" type="imgae/x-icon">
        <title>后台网站</title>
    </head>
    <body>
    <div class="wrap mcontents">
    <!--文档头部上-->
        <div class="site_top clearfix">
            <div class="item_top">
                <div class="l">
                    <a href="mainpage.html" class="logo_w item" data-role="ifmpage">
                        <img class="logo" src="" >
                    </a>
                    <a class="iconfont mnav_btn item" >&#xe67c;</a>
                </div>
                <div class="r">
                    <div class="item hide_itm uinfo" id="top_uinfo">
                        <span class="show active">张三</span>
                        <ul class="hide_content">
                            <li>等级：3级</li>
                            <li>称号：无敌</li>
                            <li>服务中心：以及服务中心</li>
                        </ul>
                    </div>
                    <div class="item">
                        <button type="button" class="before_idx">前台首页</button>
                        <button type="button" class="clear_cache">清楚缓存</button>
                    </div>
                    <a href="login.html" class="item esc iconfont" title="退出系统">&#xe6db;</a>
                </div>
            </div>
            <div class="opened_nav mcontents" id="topnav">
                <a href="mainpage.html" class="item" data-role="ifmpage" title="首页">
                    <div class="txt">首页</div>
                </a>
            </div>
        </div>
    <!--左侧边栏 nav-->
        <div class="left_sidebar logo_w" id="site_leftbar">
            <!--<a class="iconfont mnav_btn" data-role="onbtn">&#xe66f;</a>-->
            <!--<div class="clearfix"></div>-->
            <ul class="nav_area" id="major_nav">
                <li class="">
                    <a href="mainpage.html" class="summary" data-role="ifmpage">
                        <span><i class="iconfont">&#xe642;</i>首页</span>
                    </a>
                </li>
                <li>
                    <a class="summary" >
                        <span><i class="iconfont">&#xe69a;</i>用户中心</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="userManager.html" data-role="ifmpage">会员管理</a>
                        <a href="invert.html" data-role="ifmpage">推荐关系</a>
                        <a href="team.html" data-role="ifmpage">图谱</a>
                        <a href="tz_set.html" data-role="ifmpage">投注管理</a>
                    </div>
                </li>
                <li>
                    <a class="summary" >
                        <span><i class="iconfont">&#xe684;</i>信息中心</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="notice.html" data-role="ifmpage">公告列表</a>
                    </div>
                </li>
                <li>
                    <a class="summary" >
                        <span><i class="iconfont">&#xe6b5;</i>账务管理</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="recharge.html" data-role="ifmpage">充值拨币</a>
                        <a href="recharge_verify.html" data-role="ifmpage">充值审核</a>
                        <a href="recharge_log.html" data-role="ifmpage">充值日志</a>
                        <a href="withdraw_verify.html" data-role="ifmpage">提现审核</a>
                        <a href="withdraw_log.html" data-role="ifmpage">提现日志</a>
                        <a href="wallet.html" data-role="ifmpage">钱包</a>
                        <a href="adjust_log.html" data-role="ifmpage">调节日志</a>
                    </div>
                </li>
                <li>
                    <a  class="summary" >
                        <span><i class="iconfont">&#xe654;</i>权限管理</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="role_list.html" data-role="ifmpage">角色管理</a>
                        <a href="admin_list.html" data-role="ifmpage">管理员列表</a>
                        <!--<a href="role_add.html" data-role="ifmpage">角色添加</a>-->
                    </div>
                </li>
                <li>
                    <a  class="summary" >
                        <span><i class="iconfont">&#xe66a;</i>系统管理</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="site_set.html" data-role="ifmpage">网站设置</a>
                        <a href="param.html" data-role="ifmpage">参数设置</a>
                        <a href="system_log.html" data-role="ifmpage">系统日志</a>
                        <a href="coin_set.html" data-role="ifmpage">货币字段设置</a>
                    </div>
                </li>
                <li>
                    <a  class="summary" >
                        <span><i class="iconfont">&#xe643;</i>统计报表</span>
                        <i class="iconfont jt">&#xe72d;</i>
                    </a>
                    <div class="details">
                        <a href="data_chart.html" data-role="ifmpage">拨币数据报表</a>
                        <a href="data_pic.html" data-role="ifmpage">拨币数据图</a>
                    </div>
                </li>
            </ul>
        </div>
    <!--文档切换区-->
        <div class="doc_area">
            <iframe src="mainpage.html"  id="outDoc" name="outDoc"  class="outDoc" width="100%"  frameborder="0" scrolling="no" ></iframe>
            <div class="loadEffect" id="load">
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </div>
    </body>
    <script src="js/jquery-3.1.1.min.js"></script>
    <script src="js/siteBasic.js"></script>
    <script>
        window.onload=function(){
            loadEnd("#load");
        };
        function loadEnd(obj){
            $(obj).hide();
        }
        $().ready(function(){
            iframeHeight(".outDoc");
            siteEsc(".esc"); /*退出网站*/
            ifmPage("[data-role='ifmpage']","#outDoc");
            showLeftBar(".mnav_btn","#site_leftbar"); /*导航栏点击*/
            btmShowInfo(".hide_itm");
        });
        function showLeftBar(btn,obj)
        {
            $(btn).click(function () {
                $(obj).toggleClass("active");
                $(".mcontents").toggleClass("active");
            });
            $(obj).find(".summary").click(function(){
                $(this).addClass("active").siblings(".details").slideToggle();
                $(this).parent().siblings().find(".summary").removeClass("active");
                $(this).parent().siblings().find(".details").slideUp();
            });
            $(obj).find("[data-role='ifmpage']").click(function(event){
                $(obj).removeClass("active");
                var txt=$(this).html(),
                    url=$(this).attr("href"),
                    $navt=$("#topnav");
                $.each($navt.find(".item"),function(i,val){
                    var str=$(val).prop("href");
                    $(val).removeClass("active");
                    if(str.indexOf(url)>0){
                         $(val).addClass("active");
                    }
                });
                var dom="<a href=\""+url+" \" class='item active' data-role='ifmpage' title='首页'>" +
                    "<div class='txt'>"+txt+"</div><i class='iconfont close'>&#xe637;</i></a>";
                if($navt.html().indexOf(url)<=0){
                    $navt.append(dom);
                }
                toggleNavT("#topnav");
            });
        }
        function toggleNavT(obj){
          $(obj).find(".item").click(function(){
              $(this).addClass("active").siblings().removeClass("active");
          });
          $(obj).find(".item .close").click(function(event){
              if(event && event.preventDefault){
                  event.preventDefault();
                  event.stopPropagation();
              }else{
                  window.event.returnValue=false;
              }
              var prev_src= $(this).parent().prev().attr("href");
              var next_src= $(this).parent().next().attr("href");
              $(this).parent().siblings().removeClass("active");
              if(next_src){
                  $("#outDoc").attr("src",next_src);
                  $(this).parent().next().addClass("active");
              }else{
                  $("#outDoc").attr("src",prev_src);
                  $(this).parent().prev().addClass("active");
              }
              $(this).parent().remove();
          })
        }
        function  btmShowInfo(obj){
            $(obj).on("mouseenter",function(){
                $(this).find(".show").removeClass("active");
                $(this).find(".hide_content").show();
            }).on("mouseleave",function(){
                $(this).find(".show").addClass("active");
                $(this).find(".hide_content").hide();
            });
        }
        function leftBarOn(){
            $("#site_leftbar").toggleClass("active");
            $(".mcontents").toggleClass("active");
        }

    </script>
</html>